package org.dong.service.Impl;


import org.dong.Tool.Data;
import org.dong.mapper.AdminUserMapper;
import org.dong.pojo.AdminUser;
import org.dong.service.AdminUserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
@Transactional
public class AdminUserServiceImpl implements AdminUserService {

    @Resource
    AdminUserMapper adminUserMapper;

    @Override
    public AdminUser getAdminUser(String account, String password) {
        return adminUserMapper.getAdminUser(account, password);
    }

    @Override
    public List<AdminUser> getAdminUserList(int type) {

        return adminUserMapper.getAdminUserList(0,1);
    }

    @Override
    public Integer addAdminUser(AdminUser adminUser) {

        return adminUserMapper.addAdminUser(adminUser);
    }

    @Override
    public AdminUser getAdminUserId(Integer id) {
        return adminUserMapper.getAdminUserId(id);
    }


}
